package com.fzy.modules.people.web;

import com.fzy.core.common.ApiController;
import com.fzy.modules.people.entity.CustomerCategory;
import com.fzy.modules.people.service.CustomerCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 客户分类Controller
 */
@RestController
@RequestMapping(value = "/api/people/category")
public class CustomerCategoryController extends ApiController {
    @Autowired
    CustomerCategoryService customerCategoryService;
    @GetMapping()
    public List<CustomerCategory> findAllList(){
        return customerCategoryService.findAllList();
    }
}
